#!/bin/bash
# Remove files except ".c" in "test" directory

WORK_DIR=$(cd `dirname $0`; cd .; pwd)	# Directory of this script's parent
TEST_DIR="$WORK_DIR/test"			# Directory containing test C files

# Find and remove all files except ".c"
find $TEST_DIR -type f ! -name "*.c" -exec rm -f {} \;
echo -e "\033[;32mInfo:\033[0m Cleared all non-C files in $TEST_DIR"
